<?
	require("koneksi.php");
	$kode=$_GET["kode_mk"];
	$query=mysql_query("select * from mk where kodemk='$kode'");
	$row=mysql_fetch_row($query);
	$jumlahdata = mysql_num_rows($query);
	
	$queri=mysql_query("select * from penawaran where kodemk='$kode'");
	$array=mysql_fetch_array($queri);
	if ($jumlahdata >0)
	{
		echo "Kode MK : $row[0]\n";
		echo "Nama MK : $row[1]\n";
		echo "SKS     : $row[2]\n";
		echo "Semester: $array[2]\n";
		echo "Dosen   : $array[4]\n";
		echo "Hari    : $array[7]\n";
		echo "Mulai   : $array[8]\n";
		echo "Selesai : $array[9]";
	}else
	{
		echo "Anda tidak terdaftar";
	
	}
	
?>